package com.example.pulseanalyse.veinType;

import java.util.List;

/**
 * @author: yyw
 * time: 2020/12/8 11:39
 * desc:综合脉型抽象类
 */
public abstract class synPulseType {
    public abstract void addPulseType(List<String> _strList);

    /// <summary>
    /// 左手寸
    /// </summary>
    static class LeftCun extends synPulseType {
        @Override
        public void addPulseType(List<String> _strList) {
            myHelper.LeftCun.clear();
            for (int i = 0; i < _strList.size(); i++) {
                if (_strList.get(i) != "") {
                    myHelper.LeftCun.add(_strList.get(i));
                }
            }
        }
    }


    /// <summary>
    /// 左手关
    /// </summary>
    static class LeftGuan extends synPulseType {
        @Override
        public void addPulseType(List<String> _strList) {
            myHelper.LeftGuan.clear();
            for (int i = 0; i < _strList.size(); i++) {
                if (_strList.get(i) != "") {
                    myHelper.LeftGuan.add(_strList.get(i));
                }
            }
        }
    }


    /// <summary>
    /// 左手尺
    /// </summary>
    static class LeftChi extends synPulseType {
        @Override
        public void addPulseType(List<String> _strList) {
            myHelper.LeftChi.clear();
            for (int i = 0; i < _strList.size(); i++) {
                if (_strList.get(i) != "") {
                    myHelper.LeftChi.add(_strList.get(i));
                }
            }
        }
    }

    /// <summary>
    /// 右手寸
    /// </summary>
    static class RightCun extends synPulseType {
        @Override
        public void addPulseType(List<String> _strList) {
            myHelper.RightCun.clear();
            for (int i = 0; i < _strList.size(); i++) {
                if (_strList.get(i) != "") {
                    myHelper.RightCun.add(_strList.get(i));
                }
            }
        }
    }

    /// <summary>
    /// 右手关
    /// </summary>
    static class RightGuan extends synPulseType {
        @Override
        public void addPulseType(List<String> _strList) {
            myHelper.RightGuan.clear();
            for (int i = 0; i < _strList.size(); i++) {
                if (_strList.get(i) != "") {
                    myHelper.RightGuan.add(_strList.get(i));
                }
            }
        }
    }

    /// <summary>
    /// 右手尺
    /// </summary>
    static class RightChi extends synPulseType {
        @Override
        public void addPulseType(List<String> _strList) {
            myHelper.RightChi.clear();
            for (int i = 0; i < _strList.size(); i++) {
                if (_strList.get(i) != "") {
                    myHelper.RightChi.add(_strList.get(i));
                }
            }
        }
    }
}
